/**
 * losenote.com Inc.
 * Copyright (c) 2013-2013 All Rights Reserved.
 */
package com.losenote.web.form;

import org.springmodules.validation.bean.conf.loader.annotation.handler.NotBlank;
import org.springmodules.validation.bean.conf.loader.annotation.handler.RegExp;

import com.losenote.base.util.StringUtil;
import com.losenote.model.ToString;

/**
 * 拾到物品的类型
 * 
 * @author danjingyu
 * @version $Id: FindNoteForm.java, v 0.1 2013-9-19 下午11:38:32 danjingyu Exp $
 */
public class FindNoteForm extends ToString {

    /**默认序列*/
    private static final long serialVersionUID = 1L;

    /**分类*/
    private int               categoryId;

    /**分类*/
    private String            categoryName;

    /**note的标题*/
    @NotBlank(message = "发布信息不能没有标题！")
    private String            title;

    /**省份信息*/
    private String            provience;

    /**城市信息*/
    private String            city;

    /**区信息*/
    private String            district;

    /**详细地址*/
    private String            addressDetail;

    /**拾到日期*/
    @NotBlank(message = "请输入你拾到/得到的时间")
    private String            findDate;

    /**消息有效期*/
    private int               effiectDate;

    /**文章内容*/
    @NotBlank(message = "请输入拾到物品的描述")
    private String            noteContent;

    /**密码*/
    private String            passwd;

    /**重复密码*/
    private String            repasswd;

    /**邮件地址*/
    @NotBlank(message = "不能为空")
    @RegExp(value = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*", message = "请输入合法的邮箱格式")
    private String            email;

    /**手机*/
    @NotBlank(message = "不能为空")
    private String            contactName;

    /**手机*/
    @NotBlank(message = "不能为空")
    private String            mobile;

    /**问题*/
    private String            questionOne;

    /**答案*/
    private String            answerOne;

    /**问题*/
    private String            questionTwo;

    /**答案*/
    private String            answerTwo;

    /**
     * 返回是否高级模式
     * 
     * @return
     */
    public boolean isSenior() {
        return !StringUtil.isBlank(questionOne);
    }

    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getProvience() {
        return provience;
    }

    public void setProvience(String provience) {
        this.provience = provience;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public String getAddressDetail() {
        return addressDetail;
    }

    public void setAddressDetail(String addressDetail) {
        this.addressDetail = addressDetail;
    }

    public String getFindDate() {
        return findDate;
    }

    public void setFindDate(String findDate) {
        this.findDate = findDate;
    }

    public int getEffiectDate() {
        return effiectDate;
    }

    public void setEffiectDate(int effiectDate) {
        this.effiectDate = effiectDate;
    }

    public String getNoteContent() {
        return noteContent;
    }

    public void setNoteContent(String noteContent) {
        this.noteContent = noteContent;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public String getRepasswd() {
        return repasswd;
    }

    public void setRepasswd(String repasswd) {
        this.repasswd = repasswd;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getQuestionOne() {
        return questionOne;
    }

    public void setQuestionOne(String questionOne) {
        this.questionOne = questionOne;
    }

    public String getAnswerOne() {
        return answerOne;
    }

    public void setAnswerOne(String answerOne) {
        this.answerOne = answerOne;
    }

    public String getQuestionTwo() {
        return questionTwo;
    }

    public void setQuestionTwo(String questionTwo) {
        this.questionTwo = questionTwo;
    }

    public String getAnswerTwo() {
        return answerTwo;
    }

    public void setAnswerTwo(String answerTwo) {
        this.answerTwo = answerTwo;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

}
